package com.topideal.supplychain.hades.master.service.impl;

import com.topideal.supplychain.hades.master.mapper.ProjectMapper;
import com.topideal.supplychain.hades.master.model.Project;
import com.topideal.supplychain.hades.master.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目
 *
 * @author xuxiaoyan
 * @date 2018-09-17 18:00
 */
@Service
public class ProjectServiceImpl implements ProjectService {

    @Autowired
    private ProjectMapper projectMapper;

    /**
     * 根据项目id或项目名搜索项目
     *
     * @param query
     * @return
     */
    @Override
    public List<Project> selectByIdOrName(String query) {
        return projectMapper.selectByIdOrName(query);
    }
}
